package com.sevattal.service.leaves.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sevattal.service.base.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 物资表
 * </p>
 *
 * @author Sevattal
 * @since 2021-08-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_material")
@ApiModel(value="Material对象", description="物资表")
public class Material extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "物资编号")
    @TableField("f_mId")
    private String fMid;

    @ApiModelProperty(value = "物资种类")
    @TableField("f_mKind")
    private Long fMkind;

    @ApiModelProperty(value = "名称")
    @TableField("f_mName")
    private String fMname;

    @ApiModelProperty(value = "品牌")
    @TableField("f_mBrand")
    private String fMbrand;

    @ApiModelProperty(value = "型号")
    @TableField("f_mType")
    private String fMtype;

    @ApiModelProperty(value = "详细描述")
    @TableField("f_mDesc")
    private String fMdesc;

    @ApiModelProperty(value = "主要参数")
    @TableField("f_mSpec")
    private String fMspec;

    @ApiModelProperty(value = "计量单位")
    @TableField("f_mUnit")
    private String fMunit;

    @ApiModelProperty(value = "备注")
    @TableField("f_mMemo")
    private String fMmemo;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否禁用 1（true）已禁用，  0（false）未禁用")
    @TableField("is_disabled")
    private Boolean disabled;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
